package org.geektimes.projects.user.servlet;

import org.geektimes.context.ComponentContext;

import javax.servlet.*;
import javax.servlet.annotation.HandlesTypes;
import java.util.Set;

@HandlesTypes(value = {Filter.class, ServletContextListener.class})
public class CustomServletContainerInitializer implements ServletContainerInitializer {

    @Override
    public void onStartup(Set<Class<?>> set, ServletContext servletContext) throws ServletException {

        // servletContext.addFilter("");
//        servletContext.addListener(ComponentContextInitializerListener);
//        servletContext.addServlet("FrontControllerServlet",FrontControllerServlet.class);
        ComponentContext context = new ComponentContext();
        context.init(servletContext);

    }
}
